<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="cn.edu.ecut.se2024.User.waresentry" %>
    <%@ page import="java.util.List" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>入库单</title>
</head>
<body>
<table border="1">
<tr>
<th>单号</th><th>供应商</th><th>商品号</th><th>商品名</th><th>商品数量</th><th>商品价格</th>
</tr>
<%
	List<waresentry> ware=(List<waresentry>)request.getAttribute("ware");
	if (ware != null) {
	for(waresentry wares:ware){

%>
<tr>
<td><a href="QuerywaresentryBySnoServlet?sno=<%=wares.getNumber() %>">
<%=wares.getNumber() %></a></td>
<td><%=wares.getSupplier() %></td>
<td><%=wares.getPID() %></td>
<td><%=wares.getPname() %></td>
<td><%=wares.getPquantity() %></td>
<td><%=wares.getPprice() %></td>
<td><a href="DeletewaresentryServlet?sno=<%=wares.getNumber() %>">删除</a></td></tr>
<%}}%>
</table>
<a href="add.jsp">新增</a>
</body>
</html>